package com.ruoyi.supply.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 t_purchase_order
 * 
 * @author kai
 * @date 2022-08-24
 */
public class PurchaseOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 订单总额 */
    @Excel(name = "订单总额")
    private BigDecimal totalAmount;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal discountAmount;

    /** 优惠后金额 */
    @Excel(name = "优惠后金额")
    private BigDecimal afterDiscountAmount;

    /** 定金 */
    @Excel(name = "定金")
    private BigDecimal earnest;

    /** 结算账户编号 */
    @Excel(name = "结算账户编号")
    private String settlementAccountSn;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long supplierId;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 审核状态 1已审核 0待审核 2完成采购 */
    @Excel(name = "审核状态 1已审核 0待审核 2完成采购")
    private Integer state;

    /** 商品信息 */
    @Excel(name = "商品信息")
    private String commodityInformation;

    /** 操作员 */
    @Excel(name = "操作员")
    private String operator;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setAfterDiscountAmount(BigDecimal afterDiscountAmount) 
    {
        this.afterDiscountAmount = afterDiscountAmount;
    }

    public BigDecimal getAfterDiscountAmount() 
    {
        return afterDiscountAmount;
    }
    public void setEarnest(BigDecimal earnest) 
    {
        this.earnest = earnest;
    }

    public BigDecimal getEarnest() 
    {
        return earnest;
    }
    public void setSettlementAccountSn(String settlementAccountSn) 
    {
        this.settlementAccountSn = settlementAccountSn;
    }

    public String getSettlementAccountSn() 
    {
        return settlementAccountSn;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setCommodityInformation(String commodityInformation) 
    {
        this.commodityInformation = commodityInformation;
    }

    public String getCommodityInformation() 
    {
        return commodityInformation;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("creatTime", getCreatTime())
            .append("orderNo", getOrderNo())
            .append("totalAmount", getTotalAmount())
            .append("discountAmount", getDiscountAmount())
            .append("afterDiscountAmount", getAfterDiscountAmount())
            .append("earnest", getEarnest())
            .append("settlementAccountSn", getSettlementAccountSn())
            .append("supplierId", getSupplierId())
            .append("supplier", getSupplier())
            .append("remark", getRemark())
            .append("state", getState())
            .append("commodityInformation", getCommodityInformation())
            .append("operator", getOperator())
            .toString();
    }
}
